package com.server.config;

import io.netty.handler.codec.http.websocketx.WebSocketDecoderConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
 * 用来中转yml中的配置
 * 需要用到它们的地方只管用这个类去调get即可
 */
@Component
@Data
@ConfigurationProperties(prefix = "netty-and-websocket")
public class NettyAndWebSocketConfig {
    // Netty端口
    private int port;
    // WebSocket地址
    private String path;
    // 连接线程等待队列大小
    private int channelOptionBacklog;
    // websocket请求聚合器大小
    private int aggregator;
    // Netty的boos线程数
    private int nettyBoosGroup;
    // Netty的work线程数
    private int nettyWorkGroup;

}
